package com.hnit.care.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hnit.care.entity.Drug;
import com.hnit.care.mapper.DrugMapper;
import com.hnit.care.service.IDrugService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author liang
 * @since 2023-09-07
 */
@Service
public class DrugServiceImpl extends ServiceImpl<DrugMapper, Drug> implements IDrugService {

    @Resource
    private DrugMapper drugMapper;
    @Override
    public Drug selectdrug(String drugNmae) {
        return drugMapper.selectdrug(drugNmae);
    }

    @Override
    public void updatacount(String drugName,int drugnum) {
        drugMapper.updatecount(drugName,drugnum);
    }
}
